angular.module('myApp', [])
    .directive('myDirective', function() {
        return {
            restrict: 'A',
            scope: true
        };
    })
    .controller('SomeController', function($scope) {
        // 可以留空，但需要被定义
    })
    .controller('SecondController', function($scope) {
        // 同样可以留空
    })

    .controller('MainController', function($scope) {
    })
    .directive('aDirective', function() {
        return {
            restrict: 'A',
            scope: {},
//            replace:true,
            priority: 100,
            template: '<div>Inside myDirective XXXXXX{{ aProperty }}</div>'
        };
    });

